<?php
$lifeTime=26*3600;
session_set_cookie_params($lifeTime);
session_start();
$openid=NULL;
if (isset($_GET['openid'])){
    $_SESSION['openid']=$_GET['openid'];
    header('Location: game.php');
    exit;
}
if (isset($_GET['op'])){
    $openid=$_GET['op'];
    $_SESSION['openid']=$openid;
}
if (isset($_SESSION['openid'])){
    $openid=$_SESSION['openid'];
}
if (empty($openid)){
    exit;
}
include_once("./c/config.php");
$url='http://tu-10030004.file.myqcloud.com/race/';
$_SESSION['skey']=rand(1,99999999);
//判断题1分，单选题2分 不定项选择题 3分
//判断40题，单选120题，多选40题
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>中学生古诗文大会</title>
<style>
html,body{font-size:16px;width:100%;font-size:12px;color:#fff;font-family:Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body, div{position:relative;padding:0px;margin:0px auto;max-width:750px;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
*{-webkit-overflow-scrolling:touch;}
.fixfixed {position:absolute;}
div,img{-webkit-tap-highlight-color:rgba(0,0,0,0);}
*{-webkit-text-size-adjust: none;}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-indent:6px;font-size:12px;z-index:2;}
.txt::-webkit-input-placeholder {color:#b4b4b4;text-align:left;}
.container{position:relative;width:100%;height:auto;overflow:hidden;}
.p1, .qu, .p3, .p2, .p4{position:absolute;width:100%;height:100%;display:none;}
.p1{background:#f5f3e9;} 
input{position:absolute;display:block;text-indent:10px;-webkit-appearance:none;background:none;padding:0;outline-style:none;border:none;color:#000;}
select{position:absolute;display:block;background:transparent;border:0px;text-indent:8px;font-size:12px;-webkit-appearance:none;}

.a100{position:absolute;display:block;width:100%;left:0;}
 
.t-rule, .t-zhuyi, .ti{position:absolute;width:100%;z-index:99;top:0px;left:0px;display:none;}
.t-end, .t-wan{position:absolute;width:100%;z-index:9999;top:0px;left:0px;display:none;}
.p-b, .thebg{position:absolute;width:100%;top:0;left:0;} 
#iosDialog2{display:none;}
.p1-top, .p3-t1{position:absolute;width:100%;display:block;top:0;left:0;}
.p1-t1{background:transparent url('<?php echo $url; ?>img/p1-t1.png') no-repeat;background-size:cover;}
.p2-t1{position:absolute;width:100%;display:block;top:0;left:0;}
.p2-t2{position:absolute;width:100%;background:transparent url('<?php echo $url; ?>img/p2-t2.png?v=1') no-repeat;background-size:cover;}
</style>
</head>
<body>
<div class="container">
  <div class="p1 page">
     <img class="p1x p-b" src="<?php echo $url; ?>img/index.jpg">
     <img class="p1-top simg" src="<?php echo $url; ?>img/top.jpg?v=2">
     <div class="thebg">
         <div class="p1-t1 a100">
            <div class="p1-bao simg"></div>
         </div>
		 
     </div>
  </div> 
  
  <div class="p2 page">
     <img class="p2x p-b" src="<?php echo $url; ?>img/p2.jpg">
     <img class="p2-t1 simg " src="<?php echo $url; ?>img/p2-t1.png">
     <div class="thebg">
         <div class="p2-t2">
           <input id="p2-name" class="txt" name="name"  type="text" value="" placeholder="请填写学生姓名"  />
           <input id="p2-phone" class="txt" name="phone" type="number" value="" placeholder="请填写可联系的真实手机号码"  />
           <select id="p2-nianji" name="nianji">
				<option value="">选择年级</option>
				<option value="yc">预初</option>
				<option value="c1">初一</option>
				<option value="c2">初二</option>
				<option value="c3">初三</option>
				<option value="g1">高一</option>
				<option value="g2">高二</option>
				<option value="g3">高三</option>
				<option value="zz">中职</option>
	        </select>
	        <input id="p2-card" class="txt" name="card" type="text" value="" placeholder="请填写学生本人的身份证"  />
            <select id="p2-qu" name="qu">
				<option value="">选择所在的区</option>
				<?php 
				$qu=['静安区','宝山区','黄浦区','青浦区','长宁区','普陀区','闸北区','虹口区','杨浦区','浦东新区','徐汇区','卢湾区','南汇区','松江区','嘉定区','闵行区','金山区','奉贤区','崇明区'];
				foreach ($qu as $v){
				?>
				<option value="<?php echo $v ?>"><?php echo $v ?></option>
				<?php } ?>
	        </select>
	        <input id="p2-school" class="txt" name="school" type="text" value="" placeholder="请填写学校名称"  />
  
            <div class="p2-jin simg"></div>
         </div>
     </div>
  </div> 
  
  
  <div class="p3 page">
     <img class="p2x p-b" src="<?php echo $url; ?>img/p2.jpg">
     <img class="p3-t1 simg " src="<?php echo $url; ?>img/p3-t1.png">
     <div class="p3-ok simg"></div>
 
 </div> 
 
<div class="js_dialog" id="iosDialog2" style="opacity:1;">
   <div class="weui-mask"></div>
   <div class="weui-dialog">
            <div class="weui-dialog__bd weui-msg"></div>
            <div class="weui-dialog__ft">
                <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary weui-btn">知道了</a>
            </div>
    </div>
</div>
  
</div>
<?php include 'js.php'; ?>
</body>
</html>